#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
SetCapsLockState, AlwaysOff
; 输入法切换
SwitchIME(dwLayout){
    HKL:=DllCall("LoadKeyboardLayout", Str, dwLayout, UInt, 1)
    ControlGetFocus,ctl,A
    SendMessage,0x50,0,HKL,%ctl%,A
}
return
~LShift::
{
  KeyWait, LShift
  if (A_Priorkey == "LShift"){
  SwitchIME(0x04090409) ;; 切換為英文輸入
  }
}
return
~RShift::
{
  KeyWait, RShift
  if (A_Priorkey == "RShift"){
    SwitchIME(00000804) ;; 切換為中文輸入
  }
}
return
